	var LAYOUT = {
		init	: function(){
			var self = this;	
			self.UI.init();
		},
		m_level		: 6,
		m_emotion_point : 0
	}

	LAYOUT.UI = {
		emotion_flag	 : ['ㅡ_ㅡ','O_O','^__^','^O^'],
		$activity_point : $("#activity_point"),
		$emotion_point : $("#emotion_point"),
		$activity_rate : jQuery("#activity_rate"),
		$baloon_emotion: jQuery("#baloon_emotion"),
		$emotion_status: jQuery("#emotion_status"),
		$level_box	   : jQuery("div.level_box"),
		init	: function(){
			var self = this;
			self.set_level(LAYOUT.m_level);
			self.set_emotion(LAYOUT.m_emotion_point);
		},
		set_emotion : function(emotion_point){
			var self = this;
			var $total_emotion = $("#total_emotion");
			if(emotion_point > 100){
				$("span#total_emotion").html(self.emotion_flag[3]);
			}else if(emotion_point > 50){
				$("span#total_emotion").html(self.emotion_flag[2]);
			}else if(emotion_point > 0){
				$("span#total_emotion").html(self.emotion_flag[1]);
			}else if(emotion_point > -50){
				$("span#total_emotion").html(self.emotion_flag[0]);
			}
			var temp_emotion = $total_emotion.html();
			$total_emotion.html(">_<");
			setTimeout(function(){$total_emotion.html(temp_emotion)},500);
		},
		set_level	: function(level){
			var self = this; 
			$("div#level_"+level).css({
				"background-color"	: "#d40000"
			});
		}	
	}
